
{# ################## #}
{# #   							       #}
{# #  FACETS CHOOSER , BOTTOM LEFT     #}
{# # 								   #}
{# ################## #}


<h2>Filters available</h2>
<h5>Choose as many filters as you like from the ones listed below</h5>

{# start of accordion #}
    {# <ul id="accordion" class="nvh m1"> #}


{# we have a list of tuples like this: #}
{# [(<FacetsGroup1>, [(<Facet1>, [[<FacetValue1>, <FacetValue2>], [<FacetValue3>, <FacetValue4>]]), ('troupe country', [etc..])]), (......)] #}


<div id="facets_list">

	{% for facetgroup, facet_and_values in facetgroups_and_facets reversed %}


	<div id="{{facetgroup.uniquename}}" class="facetgroup" style="background: #{{facetgroup.bkcolor}}">
		
	  <h3 id="{{facetgroup.uniquename}}" class="to_collapse {{facetgroup.uniquename}}_tip">
		<em>{{facetgroup.label|upper}}</em>  {# the facetgroup #}
	  </h3>  

		{% for tuple in facet_and_values %}  
		
		{% with tuple.0 as facet %}
		{% with tuple.1 as facetvalues %}
						
			<h4 id="{{facet.uniquename}}"  class="s6  {% if facet.mptt %} istreefacet  {% endif %}">
				 &gt;&gt;&gt; {{facet.name|capfirst}}
			</h4>	
	
						{# ajaxflag test removed #}
				
			{# {% block inner_facet_values %} #}

			{# INNER BLOCK TO BE UPDATED ON DEMAND in THE AJAX version of the FB #}
	
			<div class="facet">
	
		
				{% block inner_facet_values %}  								
				{# here goes the snippet_facet subtemplate #}

					{% if not ajaxflag %}
				
						{% if not twocolumnsflag %}

							{% include "djfacet/snippet_facet.html" %}

						{% else %}

							{# facetvalues are divided into two groups, for display purposes #}	
							{% include "djfacet/snippet_facet2cols.html" %}

						{% endif %}
					
					{% endif %}	

							
				{% endblock %}
				
		
			</div>
					
			{# {% endblock %} #}
			 

	{% endwith %}
	{% endwith %}
	{% endfor %}
	
	
	</div>  {# end of the facetgroup.uniquename div #}


{% endfor %}


</div>   {# end of the facets_list div #}



